package redis;

import redis.clients.jedis.Jedis;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/7/19 7:58
 */

public class RedisMain {


    public static void main(String [] args){
        Jedis jedis=new Jedis("192.168.0.27",6380);
       String res= jedis.set("1","1","NX","EX",10);
//        System.out.println(res);
//        res= jedis.set("1","1","NX","EX",10);
//       System.out.println(res);
//        for(Integer i=0; i<2000;i++)
//            System.out.println( jedis.hset("hashkey","field-"+i,"value-"+i));
        //jedis.ping();
//        String s=jedis.set("hello","sjw");
//        System.out.println(s);
//        String value=jedis.get("hello");
//        System.out.println(value);
        //jedis.i
        jedis.close();
    }
}
